﻿using Newtonsoft.Json.Linq;
using SDF.Plugin.Misc.SAPAdapter.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SDF.Plugin.Misc.SAPAdapter.Core
{
    public interface ISAPOperation
    {
        /// <summary>
        /// 测试SAP连通性
        /// </summary>
        /// <returns></returns>
        bool Ping();

        IEnumerable<TableInfoModel> GetTableInfo(string tableName, string language = "1");

        IEnumerable<Dictionary<string, string>> GetTableData(string tableName, RfcReadTableParamsModel param);

        IEnumerable<FunctionParamsModel> GetFunctionParams(string functionName);

        JObject ExecuteSAPFunction(string functionName, JObject funcParams);
    }
}